<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../ajax/jquery-3.5.1.min.js"></script>
</head>
<body>
<script>
    import $ from "jquery";

    $.ajax({
        type:"get",
        url:"/data.txt",
        data:{
            uname:"zhangshan"
        },
        success:function (data){
            console.log(data)
        }

    })
</script>
</body>
</html>